import { TestCases } from "./testCases";
import { url } from "@kit.ArkTS";

export const default_values:TestCases = {
  "testCases": [
    {
      "documentation": "default endpoint",
      "params": {},
      "expect": {
        "endpoint": {
          "url": url.URL.parseURL("https://fips.us-west-5.amazonaws.com")
        }
      }
    },
    {
      "documentation": "test case where FIPS is disabled",
      "params": {
        "UseFips": false
      },
      "expect": {
        "error": "UseFips = false"
      }
    },
    {
      "documentation": "test case where FIPS is enabled explicitly",
      "params": {
        "UseFips": true
      },
      "expect": {
        "endpoint": {
          "url": url.URL.parseURL("https://fips.us-west-5.amazonaws.com")
        }
      }
    },
    {
      "documentation": "defaults can be overridden",
      "params": {
        "Region": "us-east-1"
      },
      "expect": {
        "endpoint": {
          "url": url.URL.parseURL("https://fips.us-east-1.amazonaws.com")
        }
      }
    }
  ],
  "version": "1.4"
}
